package com.xudow.app;

import android.os.Environment;

import java.io.File;

/**
 * Configuration
 *
 * @author luekcheng
 */
public class Config {

    public static final String BASE_URL = Version.BASE_URL;

    /**
     * 公众版app更新检测地址
     */
    public static final String APP_PUBLIC_UPDATE_CHECK_URL = "http://app.xudow.com/p/update.xml";

    /**
     * 机构版app更新检测地址
     */
    public static final String APP_AGENCY_UPDATE_CHECK_URL = "http://app.xudow.com/a/update.xml";

    /**
     * 图片下载URL
     */
    public static final String IMAGE_LOAD_URL = "imagedelivery";

    /**
     * 图片下载URL
     */
    public static final String IMAGE_LOAD_URL_PARAMS = BASE_URL + "imagedelivery?name=%s";

    /**
     * 登陆URL
     */
    public static final String LOGIN_URL = "dologin";

    /**
     * 退出URL
     */
    public static final String LOGOUT_URL = "logout";

    /**
     * 获取验证码URL
     */
    public static final String VCODE_URL = "app/user/send_vcode";

    /**
     * 用户注册URL
     */
    public static final String REGISTER_URL = "app/user/register";

    /**
     * 重置密码URL
     */
    public static final String RESET_PASSWORD_URL = "app/user/reset_password";

    /**
     * 学生详细信息URL
     */
    public static final String USER_PROFILE_URL = "app/user/user_detail";

    /**
     * 用户基本资料修改URL
     */
    public static final String PROFILE_UPDATE_URL = "app/user/update_profile";

    /**
     * 上传用户头像URL
     */
    public static final String PORTRAIT_UPLOAD_URL = "app/me/upload_portrait";

    /**
     * 反馈URL
     */
    public static final String FEEDBACK_URL = "app/submit_feedback";

    /**
     * 修改手机号码URL
     */
    public static final String CHANGE_PHONENUM_URL = "app/me/change_mobilephone";

    /**
     * 绑定手机号URL
     */
    public static final String MOBILE_PHONE_BIND_URL = "app/user/bind_mobilephone";

    /**
     * 专家列表URL
     */
    public static final String EXPORTS_URL = "app/qanda/list_expert";

    /**
     * 课程列表URL
     */
    public static final String COURSE_LIST_URL = "/app/course/list_courseScreen";

    /**
     * 根据距离查询课程URL
     */
    public static final String COURSE_LIST_BY_DISTANCE_URL = "app/course/search_course_by_distance";

    /**
     * 根据区域查询课程URL
     */
    public static final String COURSE_LIST_BY_AREA_URL = "app/course/search_course_by_area";
    /**
     * 根据校区id查询课程URL
     */
    public static final String COURSE_LIST_BY_AGENCYSCHOOLID_URL="app/course/search_course_by_school";
    /**
     * 根据开课时间搜索课程URL
     */
    public static final String COURSE_LIST_BY_BEGIN_DATE_URL = "app/course/search_course_by_begin_date";

    /**
     * 获取学生列表信息URL
     */
    public final static String STUDENT_LIST_URL = "app/user/list_student_for_parent";

    /**
     * 课程表URL
     */
    public final static String CLASS_SCHEDULE_URL = "app/study/get_schedule";

    /**
     * 考勤URL
     */
    public final static String CLASS_LOG_URL = "app/study/get_attendance";

    /**
     * 剩余课时
     */
    public final static String REMAIN_CLASS_URL = "app/study/get_remained_hour";

    /**
     * 科目列表URL
     */
    public final static String SUBJECTS_URL = "app/study/list_subject";

    /**
     * 错题列表URL
     */
    public final static String CLASS_MISTAKES_URL = "app/study/list_wrong_topic";

    /**
     * 新建错题URL
     */
    public final static String CLASS_MISTAKE_CREATE_URL = "app/study/create_wrong_topic";

    /**
     * 获取错题详情URL
     */
    public final static String CLASS_MISTAKE_SHOW_URL = "app/study/show_wrong_topic";

    /**
     * 删除错题图片URL
     */
    public final static String CLASS_MISTAKE_IMAGE_DELETE_URL = "app/study/delete_wrong_topic_image";

    /**
     * 删除错题URL
     */
    public final static String CLASS_MISTAKE_DELETE_URL = "app/study/delete_wrong_topic";

    /**
     * 收藏课程URL
     */
    public final static String COURSE_FAVORITE_URL = "app/course/add_favorite_course";
    /**
     * 添加新学员
     */
    public final static String Add_NEW_STUDENT_URL = "/app/user/add_new_student";
    /**
     * 课程详情URL
     */
    public final static String COURSE_DETAIL_URL = "app/course/course_detail";

    /**
     * 课程图片
     */
    public final static String COURSE_THUMBNAILS_URL = "app/course/get_course_thumbnails";

    /**
     * 相关课程URL
     */
    public final static String RELATED_COURSES_URL = "app/course/list_related_course";

    /**
     * 添加到购物车URL
     */
    public final static String SHOPPING_CART_ADD_URL = "app/cart/add_course";

    /**
     * 从购物车移除URL
     */
    public final static String SHOPPING_CART_REMOVE_URL = "app/cart/remove_batch_course";
    /**
     * 从购物车添加订单
     */
    public final static String SHOPPING_CART_MAKEORDER_URL="app/order/cart_save_orders";
    /**
     * 修改购物车课程学生URL
     */
    public final static String SHOPPIN_CART_CHANGE_STUDENT_URL = "/app/cart/change_course_student";
    /**
     * 获取购物车商品列表URL
     */
    public final static String SHOPPING_CART_LIST_URL = "app/cart/list_cart_items";

    /**
     * 地图页面URL
     */
    public final static String MAP_URL = BASE_URL + "app/common/map?lng=%s&lat=%s&address=%s";

    /**
     * 我的收藏URL
     */
    public final static String FAVORITE_LIST_URL = "app/me/list_favorite?type=%s";
    /**
     * 大帝校区列表URL
     * agency_id=1  get方式
     */
    public final static String DDSCHOOL_LIST_URL="app/course/search_school_agency ";
    /**
     * OA机构列表
     */

    public final static String OA_AGENCY_LIST_URL="app/course/search_oa_agency_list";
    /**
     * 删除课程收藏URL
     */
    public final static String COURSE_FAVORITE_DELETE_URL = "app/course/remove_favorite_course";
    /**
     * 课程结算生成订单
     */
    public final static String COURSE_MOKE_ORDER_URL = "app/order/save_orders";
    /**
     * 创建订单URL
     */
    public final static String ORDER_CREATE_URL = "app/order/create_order";

    /**
     * 订单详情URL
     */
    public final static String ORDER_DETAIL_URL = "app/order/order_detail";
    /**
     * 课程订单展示URL
     */
    public final static String SHOW_ORDER_URL = "app/order/show_orders";
    /**
     * 订单列表URL
     */
    public final static String ORDER_LIST_URL = "app/order/list_order";

    /**
     * 订单删除URL
     */
    public final static String ORDER_DELETE_URL = "app/order/delete_order";

    /**
     * 优惠券列表URL
     */
    public final static String COUPON_LIST_URL = "app/me/list_coupon";

    /**
     * 未使用优惠券列表URL
     */
    public final static String COUPON_UNUSED_LIST_URL = "app/me/list_unused_coupon";

    /**
     * 增加订单支付信息URL
     */
    public final static String PAYMENT_CREATE_URL = "app/order/create_payment";

    /**
     * 增加订单支付信息(选择课时)URL
     */
    public final static String PAYMENT_CREATE_WITH_COURSE_HOUR = "app/order/create_payment_with_course_hour";

    /**
     * 修改支付结果URL
     */
    public final static String PAYMENT_UPDATE_URL = "app/order/update_payment";

    /**
     * 为订单选择学生URL
     */
    public final static String ORDER_STUDENT_SELECT_URL = "app/order/select_student";

    /**
     * 为订单添加学生信息URL
     */
    public final static String ORDER_STUDENT_ADD_URL = "app/order/add_student";

    /**
     * 年级列表URL
     */
    public final static String GRADES_URL = "app/order/list_sys_grade";

    /**
     * 公办学校URL
     */
    public final static String SYS_SCHOOLS_URL = "app/order/list_sys_school";

    /**
     * 活动列表URL
     */
    public final static String ACTIVITIES_LIST_URL = "app/activity/list_activity";

    /**
     * 活动详情URL
     */
    public final static String ACTIVITY_DETAIL_URL = "app/activity/activity_detail";

    /**
     * 消息列表URL
     */
    public final static String MESSAGE_LIST_URL = "app/msg/list_message";

    /**
     * 获取置顶系统消息列表
     */
    public final static String MESSAGE_UI_TOP_URL = "app/msg/get_uitop_message";

    /**
     * 置顶活动URL
     */
    public final static String ACTIVITY_UI_TOP_URL = "app/activity/get_uitop_activity";

    /**
     * 首页消息列表URL
     */
    public final static String HOME_MESSAGE_LIST_URL = "app/home/msg_list";

    /**
     * 首页消息阅读状态更新URL
     */
    public final static String HOME_MESSAGE_READ_UPDATE_URL = "app/home/msg_update";

    /**
     * 首页版块消息数目
     */
    public final static String NEW_MSG_COUNT_URL = "app/home/new_msg_count";

    /**
     * 消息查看URL
     */
    public final static String MESSAGE_VIEW_URL_PARAM = BASE_URL + "app/msg/%d";

    /**
     * 提交新问题URL
     */
    public final static String QANDA_QUESTION_SUBMIT_URL = "app/qanda/submit_question";

    /**
     * 在1对1提问时，用户自己提交内容，作为自身问题的回答URL
     */
    public final static String QANDA_QUESTION_SUBMIT_SELF_ANSWER_URL = "app/qanda/submit_self_answer";

    /**
     * 专家详情URL
     */
    public final static String QANDA_EXPERT_DETAIL_URL = "app/qanda/expert_detail";

    /**
     * 专家回答过的问题列表URL
     */
    public final static String QANDA_EXPERT_ANSWERED_QUESTION_URL = "app/qanda/expert_answered_question";

    /**
     * 我的问题列表URL
     */
    public final static String MY_QUESTIONS_URL = "app/me/list_my_question";

    /**
     * 问题详情URL
     */
    public final static String QANDA_QUESTION_DETAIL = "app/qanda/question_detail";

    /**
     * 广告图片URL
     */
    public final static String ADV_LIST_URL = "app/home/adv_list";

    /**
     * 关联账号列表URL
     */
    public final static String RELATED_ACCOUNT_URL = "app/me/list_related_account";

    /**
     * 支付宝回调URL
     */
    public final static String ALIPAY_NOTIFY_URL = "alipay/notify";

    /**
     * 保持session不过期请求URL
     */
    public final static String SESSION_URL = "app/common/session";

    /**
     * 校区图片URL
     */
    public final static String SCHOOL_IMAGES_URL = "app/course/get_school_thumbnails";

    /**
     * 新增关联用户URL
     */
    public final static String RELATED_ACCOUNT_ADD_URL = "app/me/add_related_account";

    /**
     * 微信支付异步回调地址
     */
    public final static String WX_PAY_NOTIFY_URL = BASE_URL + "weixin/notify";

    /**
     * 每日推荐课程URL
     */
    public final static String DAILY_RECOMMEND_COURSE = "app/course/list_daily_recommend_course";
    /**
     * 获取座位表URL
     * courseId & orderItemId
     */
    public final static  String GET_SITES_IN_CLASS="app/sites/get_class_sites";
    /**
     * 提交座位URL
     * orderItemId & siteId
     *
     */
    public final static  String SET_SIT_IN_CLASS="app/sites/set_order_sites";
    /**
     * 听课证URL
     */
    public final static String SITE_CARD_URL = "app/sites/set_class_card";

    /**--------------------------------------------------------------------------------------*/

    /**
     * 退出BroadcastReceiver标示
     */
    public final static String EXIT_BROADCAST_ACTION = "com.xudow.app.ExitBroadcastReceiver";

    /**--------------------------------------------------------------------------------------*/

    /**
     * 分页中页面的URL参数名称
     */
    public final static String PAGINATION_PARAM_NAME = "page";

    /**
     * 分页中页面每页显示行数的URL参数名称
     */
    public final static String PAGINATION_OFFSET_PARAM_NAME = "offset";


    /**
     * 分页中页面每页显示行数的默认值
     */
    public final static String PAGINATION_OFFSET_DEFAULT_VALUE = "10";


    /**
     * 验证码发送类型
     */
    public static final String VOCDE_TYPE_REGISTER = "1"; //注册
    public static final String VCODE_TYPE_FORGET_PASSWORD = "2"; //找回密码

    /**
     * 用户角色
     */
    public static final String USER_ROLE_PARENT = "4"; //家长
    public static final String USER_ROLE_STUDENT = "5"; //学生

    /**
     * SD卡数据根目录
     */
    public static final String SDCARD_ROOT_DIR = Environment.getExternalStorageDirectory()
            + File.separator
            + "xd";

    /**
     * 错题图片目录
     */
    public static final String CLAZZ_MISTAKE_IMAGE_DIR = "mistake";

    /**
     * 困难点  考勤标题
     */
    public static final String DIFFICULT_POINTS_TITLE = "app/study/list_student_class";

    /**
     * 困难点  考勤 内容
     */
    public static final String DIFFICULT_POINTS_CONTENT = "app/study/list_student_class_time";


    /**
     * 消息频道: 1：我的学习 2：我要提问 3：我要报名 4：我的消息
     */
    public static final int MSG_CHANNEL_STUDY = 1;
    public static final int MSG_CHANNEL_QUESTION = 2;
    public static final int MSG_CHANNEL_ENROLL = 3;
    public static final int MSG_CHANNEL_MESSAGE = 4;

    /**
     * 友盟推送ALIAS
     */
    public static final String XUDOW_UMENG_MSG_ALIAS = "XUDOW";

    /*******************************************************************************************/

    /**
     * 微信
     */
   /* 壹英尺
   public static final String WX_APPID = "wxde0c329e0416dd0b";

    //商户id
    public static final String WX_PAY_PARTNER_ID = "1264402401";
    //API密钥，在商户平台设置
    public static final String WX_API_KEY = "ed946a0b56221a0321812e61eadce880";*/
    //学兜科技
    public static final String WX_APPID = "wxe0425b0a1594fdbf";

    //商户id
    public static final String WX_PAY_PARTNER_ID = "1370461902";
    //API密钥，在商户平台设置
    public static final String WX_API_KEY = "24u1ohghloqlcm76ryon2tvk0tw7m2wx";

    /**
     * 支付宝
     */
    /* 壹英尺
    //商户PID
    public static final String ALIPAY_PARTNER = "2088021458619060";
    //签约卖家支付宝账号
    public static final String ALIPAY_SELLER = "2117935269@qq.com";
    //密钥
    public static final String ALIPAY_RSA_PRIVATE = "MIICeAIBADANBgkqhkiG9w0BAQEFAASCAmIwggJeAgEAAoGBALjEPQiJ1qTpdu+OMEB39+JQo9swwjJi2Ncaz/ImmwtmVBAOwP+g8NyTncuvEb3ZCwPOw8gb4MkZQhVyF+GKctO+oRjgBCNx4m2MdUBvdmnota1RqxijERKwQRqNsPCgf7vCtp6YP8cPYXLxMxOCJGSHoo67YeazGDvoZj9lk48pAgMBAAECgYEAii/Ckfs9PJObr2jBr8XJ8EptckbSRwrksGROOAYlmW4L2wKd19IPsnj44FhsRXfppAxlIumuwdiRMybks3tviqVzJtXp5ojk2XVQ1kn8J00v71GajP1v6cQMV9sfOD3HWxx5vFBRMMQ6XJ31Ifd/WMVWc4CuATifVLaqwjYeUN0CQQDuLODAdN2djVAYscSpcW+YeOATwGNteuUwV86t0NqJUvyNFFd27S3LeKoCCjfvNP9HTtTqqv5SoEbIuA8BVNAbAkEAxpgesVOirYY+tJqwhpBxch9U309gP6V8JsAyrUaMDK3Lb+q8cku0O+2V5lGMtdKJorWhOFLTw5dIXGjkcOG6CwJBALmUvFcZeGi/6E4ljcAdhD/Ax5B8UrzGinhdoswqtW1U/TYMSI6BBjLJxWYrgiPgHpz4XsyvCdVlz2GskPyPkksCQQCkCYDIrjGgLVPcMC4BaIwcXN7o+ZKh39oV1AnH8I675k406mqv6fI80flQXinhAb+oQ2igsmGynGIr2oRe7USTAkBiJjVU//zW+VBOAJx7sZtsbtvGII/Jyoq0otutj82kW2iGQ0Zgw1ZHu6CsIlwJF2kmA3WjAgRdI1nQri8RHEs6";
*/
    //商户PID 学兜科技
    public static final String ALIPAY_PARTNER = "2088221846793105";
    //签约卖家支付宝账号
    public static final String ALIPAY_SELLER = "2718043891@qq.com";
    //密钥
    public static final String ALIPAY_RSA_PRIVATE ="MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBALwVuAYS2j5fboOZMfREjQqmEeyUun58+amTN8bT02eBM6jf66B8U1vXnspXOBCkCb3L+MAoMF3W+6XQm3H4Kp4QqbuJX/iBKByNf5tMjNsRr2tX6LGlpN3+xFsrXszSQrI8+ReL+SUO6LxUS06+P/aT3xqsFQR4+gCiU3AiqzyTAgMBAAECgYBQ58rMGgn1MJnaU+iwGVjOTteA/A0o4duHPUON7IqQiHxPVVsHItO8uwicI16Dkfx6vyXWirMbeqGvFwf2w3iY3a/qrnlxd9jWHIohlqiiM1ziW3r5KjypYaIPdvSi8Smd9QD+ou/GZypOfUWX7WBnSVlTYXk/d/SqAJu5hQKW4QJBAPYDkr8g0tKtBc3wEjEYuHbqWep8N+syoj4Qc3hUDfjZkus25l3cnBurl2PBUU5jCvn45TrGmXxjgHVXANDjD+MCQQDDuC59Qe+AkKEQuULeSFkpqD0cxez7ONF55RYe8MHByT4iZJkxilHylnCmp+2OAjNVYyV67ScdNJA8xWvoTl+RAkBk/xiKoJYMaX3dirZdM5HfN9yMGEz4oMPciPJurstBo0jeiZ5PYFcyQOKY0G9pp92Eu/qXg5rVZyAAjCRInT8TAkEAk54ZQlQ25ksvkEOLEciTp33DCi6mfRzvsfZ9ZrzEBvtYJ+ykNt9Sy5t4P9qsq80xFpf/LuYr+DUrDQsCRmbGYQJBAI70vSo3Vd9vgzHUbF7+AdoV/OjNnx2ZVwoDjUUQfyY56LR7StDSpwLBlDr4ZkafWEjIV3EaSCUO4U8v+nBWK5k=";
    /***************隐私和推送消息2.0**************************************************************/

    /**
     *是否允许通过昵称被找到
     */
    public static final String FIND_BY_NICKNAME="/v1/app/usersecret/update_nickname_status";

    /**
     * 是否允许通过真实姓名被找到
     */
    public static final String FIND_BY_REALNAME="/v1/app/usersecret/update_realname_status";

    /**
     * 是否允许通过账号被找到
     */
    public static final String FIND_BY_USERCORD="/v1/app/usersecret/update_usercode_status";

    /**
     * 置被评论时是否接收推送
     */
    public static final String PUSH_WITH_BECOMMENTED="/v1/app/usersecret/update_becommented_status";

    /**
     *设置被点赞时是否接收推送
     */
    public static final String PUSH_WITH_BELIKED="/v1/app/usersecret/update_beliked_status";

    /**
     * 设置被关注时是否接收推送
     */
    public static final String PUSH_WITH_BEATTENTIONED="/v1/app/usersecret/update_beattentioned_status";

    /**
     * 设置是否接收系统通知
     */
    public static final String PUSH_WITH_SYSTEMNOTICE="/v1/app/usersecret/update_systemnotice_status";

    /**
     * 设置是否接收课程表上课提醒
     */
    public static final String PUSHI_WITH_COURSE="/v1/app/usersecret/update_courses_status";

    /**
     * 获取用户隐私设置信息
     */
    public static final String GET_USERSECRETINFOR_URL="/v1/app/usersecret/load_usersecret";
    /**
     * 获取用户统计信息
     */
    public static final String USERCENSUS_INFOR_URL="app/me/user_census_record";

    /**
     * 课程搜索列表
     */
    public static final String SEARCH_LEVEL_LIST_URL="app/course/search_level_list";

    /**
     * 课程列表/搜索课程(与原接口地址相同)
     */
    public static final String COURSE_LISTANDSEARCH_URL="app/course/list_course";
    /**
     * 授权学员
     * studentids 学员编号 多个使用,隔开
     * phone 被授权手机号
     */
    public static final String RELATED_PARENT_URL="app/user/student_related_parent";
    /**
     * 关联机构列表
     */
    public static final String USER_AGENCY_LIST_URL="app/user/user_agency_list";
    /**
     * 修改密码
     */
    public static final String MODIFY_PWD_URL="app/user/update_password";

    /**
     * 优选课程列表
     * /app/course/list_courseScreen
     *
     * app/course/list_recommend
     *
     *
     */
    public static final String COURSE_RECOMMED_LIST_URL="app/course/list_recommend";



    /**
     * 我的发布课程（课兜）/app/course/list_courseScreen
     * app/course/my_list_course
     */
    public static final String MY_SEND_COURSE_URL="app/course/my_list_course";
    /**
     * 课程督查
     */
    public static final String COURSE_SUPERVISION_LIST_URL="app/course/list_tnspection_course";

    /**
     * 督查团队
     */
    public static final String INSPECTION_TEAM_URL="app/courses/inspection_team";

     /**
     * 机构老师
     */
    public static final String AGENCYTEACHER_INFO_URL="app/agency_teacher_info";

    /**
     * 课程上课时间表
     */
    public static final String COURSE_TIMETABLE_URL="app/get_course_study_time";
}
